import { Application } from "egg";
export default (app: Application) => {
    const { router , controller } = app ;
    router.get("/api/apps", controller.app.list);
    router.get("/api/apps/all", controller.app.findAll);
    router.get("/api/app/:id", controller.app.fetchOne);
    router.post("/api/app", controller.app.create);
    router.delete("/api/app/:id", controller.app.delete);
    router.put("/api/app/:id", controller.app.update);
};
